<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "" "">
<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ajax="http://www.apusic.com/jsf/ajax"
	xmlns:om="http://www.apusic.com/jsf/misc" renderKitId="AJAX" xmlns:epm="http://www.bp.com.cn/epm">
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<w:stylesheet src="/css/kmp4.css" type="text/css"></w:stylesheet>
		<w:script src="/javascript/k4.js" type="text/javascript" language="UTF-8"></w:script>
	</w:head>
	<w:page title="查看部门">
		<layout:borderLayout fitToBody="true">
			<layout:panel region="center" fit="true" autoScroll="true" split="true" border="false"
				styleClass="k4-combineform">
				<w:form>
					<w:toolBar id="toolbar_ope">
						<w:button value="编辑部门"
							image="#{facesContext.externalContext.requestContextPath}/images/edit.gif"
							id="modifyDepartmentUnit" />
						<w:separator id="separator" />
						<w:button value="新建下级部门"
							image="#{facesContext.externalContext.requestContextPath}/images/submit.gif"
							id="createDepartment" />
					</w:toolBar>
					<layout:panelGrid columns="2" cellpadding="0" cellspacing="0" border="1"
						styleClass="k4-combineform-grid">
						<layout:cell styleClass="k4-form-fieldtitle">
							<h:outputLabel value="部门编号" />
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldvalue">
							<h:outputText id="departmentCode">
							</h:outputText>
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldtitle">
							<h:outputLabel value="部门名称" />
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldvalue">
							<h:outputText id="name">
							</h:outputText>
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldtitle">
							<h:outputLabel value="上级部门" />
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldvalue">
							<h:outputText id="parentDepartmentalUnitId" converter="departmentNameFormatter">
							</h:outputText>
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldtitle">
							<h:outputLabel value="是否有效" />
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldvalue">
							<h:outputText id="enable" converter="yesNoFormatter">
							</h:outputText>
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldtitle">
							<h:outputLabel value="序号" />
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldvalue">
							<h:outputText id="indexNumber">
							</h:outputText>
						</layout:cell>
						<layout:cell colspan="2" style="display:none;">
							<w:textField style="display:none;" id="departmentalUnitId"></w:textField>
						</layout:cell>
					</layout:panelGrid>
				</w:form>
			</layout:panel>
			<layout:panel region="south" split="true" fit="true" height="200" border="false">
				<layout:tabLayout border="false">
					<layout:panel title="部门人员" lazyload="true" border="false" height="350"
						url="/modules/system/personsOfOneDepartment.faces?unitId=#{system_showDepartmentalUnitBean.departmentalUnitId}">
					</layout:panel>
				</layout:tabLayout>
			</layout:panel>
		</layout:borderLayout>
	</w:page>
</f:view>